package baseFx.common.context.spring;

import baseFx.common.Action1T;
import baseFx.common.context.TypeResolver;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ClassPathBeanDefinitionScanner;

public interface FxApplicationContext extends ConfigurableApplicationContext, TypeResolver {
    void addDefaultScope(String target, String scope);

    void scanPackage(Action1T<ClassPathBeanDefinitionScanner> action, String... pkg);

    default void scanPackage(String... pkg) {
        scanPackage(null, pkg);
    }
}
